<%@ page contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>学生信息录入</title>
</head>
<body>
	<h1>
		<center>添加学生信息</center>
	</h1>
	<s:form action="studentadd" method="post" theme="simple" name="add">
		<table border=1 align= "center" bgcolor="yellow">
		    <tr>
		      <td>学号</td>
		      <td><s:textfield name="id" value ="%{#request.id}"/><s:fielderror fieldName="id"/></td>
		    </tr>
		    <tr>
		      <td>姓名</td>
		      <td><s:textfield name="name" value ="%{#request.name}"/><s:fielderror fieldName="name"/></td>
		    </tr>
		    <tr>
		      <td>性别</td>
		      <td><s:radio name="sex" value="男" list="{'男','女'}"/></td>
		    </tr>
		    <tr>
		      <td>身高</td>
		      <td><s:textfield name="height" value ="%{#request.height}"/><s:fielderror fieldName="height"/></td>
		    </tr>
		    <tr>
		      <td>系部与专业</td>
		      <td><s:doubleselect headerValue="管理系" formName="add" name="study" list="{'计算机系','管理系'}" doubleName="zhuanye" doubleList="top == '管理系' ? {'旅游管理','工商管理'}:{'软件','信息管理'}"/></td>
		    </tr>
		    <tr>
		      <td>班级</td>
		      <td><s:textfield name="clas" value ="%{#request.clas}"/></td>
		    </tr>
		    <tr>
		      <td>QQ</td>
		      <td><s:textfield name="qq" value ="%{#request.qq}"/><s:fielderror fieldName="qq"/></td>
		    </tr>
		    <tr>
		      <td>手机</td>
		      <td><s:textfield name="number" value ="%{#request.number}"/><s:fielderror fieldName="number"/></td>
		    </tr>
		    <tr align="center">
		      <td colspan="2">
		      <s:submit value="添加" name="tianjia"/>
		      <s:reset value="重置" name="tianjia"/></td>
		    </tr>
		</table>
	</s:form>
</body>
</html>
